package com.example.spring_aop.client;

import com.example.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AopClient {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserService service = context.getBean("userServiceProxy", UserService.class);
        service.addOne();
        service.deleteOne();
        System.out.println(service.getClass());
    }

}
